package com.kly.user.db.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.UserImageVideoSendLogsDao;
import com.kly.user.db.entity.UserImageVideoSendLogsEntity;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * User: linqu
 * Date: 2023-06-21
 * Time: 10:45:19.419
 */

@Repository
public class UserImageVideoSendLogsDaoImpl extends AbstractBaseMapper<UserImageVideoSendLogsEntity> implements UserImageVideoSendLogsDao {

    @Override
    public Integer sendImageCount(String modelUserCode, String userCode, String imageCode) {
        Map<String, Object> params = Maps.newHashMap();
        params.put("modelUserCode", modelUserCode);
        params.put("userCode", userCode);
        params.put("imageCode", imageCode);
        return (Integer) this.getSqlSession().selectOne(this.getStatement("sendImageCount"), params);
    }
}